<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var arr = [12, 2, 23, 231, 432, 123, 75, 875]
      var maxarr = arr.join("")
      //   for (var i = 1; i < arr.length; i++) {
      //     if (arr[i] > maxarr) {
      //       maxarr = arr[i]
      //     }
      //   }
      console.log(maxarr)
    </script>
  </body>
</html>
